//
//  UILabel+THCommon.m
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import "UILabel+THCommon.h"

@implementation UILabel (THCommon)

- (instancetype)initWithFontName:(NSString *)fontName
                            size:(CGFloat)size
                       textColor:(UIColor *)textColor
{
    if (self = [super init]) {
        self.font  = [UIFont fontWithName:fontName size:size];
        self.textColor = textColor;
    }
    return self;
}

- (instancetype)initWithFontName:(NSString *)fontName
                            size:(CGFloat)size
                       textColor:(UIColor *)textColor
                   textAlignment:(NSTextAlignment )textAlignment
{
    if (self = [super init]) {
        self.font  = [UIFont fontWithName:fontName size:size];
        self.textColor = textColor;
        self.textAlignment = textAlignment;
    }
    return self;
}
@end
